A=2^14;
Fs=2048;
dt=1/Fs;
t=0:dt:1;
data = A*sin(2 * pi * t);
%plot(t,data);
fid = fopen('sine_data','wb');
for n = 1:1024
fwrite(fid, data, 'int16');
end

fclose(fid);

